import request from '@/utils/request'

export const getTopo = () => {
  return request({
    url: '/topo/getAllTopo',
    method: 'get'
  })
}


export const selectTopoById = (id) => {
  return request({
    url: '/topo/'+id,
    method: 'get',
    // params: { id }
  })
}

export const addTopo = (data) => {
  return request({
    url: '/topo/addTopo',
    method: 'post',
    data
  })
}

export const deleteTopo = (id) => { 
  return request({
    url: '/topo/'+id,
    method: 'delete'
  })
}